<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="../lib/jquery.js"></script>
    <script type="text/javascript" src="../lib/countUp.js"></script>
    <script type="text/javascript" src="../js/fullScreen.js"></script>
    <script type="text/javascript" src="../js/tagcloud.js"></script>
    <script type="text/javascript" src="../lib/echarts.min.js"></script>
    <script type="text/javascript" src="../lib/echarts-gl.js"></script>
    <script type="text/javascript" src='../lib/china.js'></script>
    <link rel="stylesheet" type="text/css" href="../styles/base.css" />
    <link rel="stylesheet" type="text/css" href="../styles/gl.css" />
    <title>Document</title>
</head>

<body>
    <div class="content">
        <div class="logo_image_box">
            <img src="../image/overview/overview_img_title.png" />
        </div>
        <div class="center clearfix">
            <div class="main_left fl">
                <div class="item">
                    <div class="top_title clearfix">
                        <img class="fl" src="../image/home_ic_01.png" />
                        <span class="fl">总用户人数</span>
                    </div>
                    <div class="bottom_number">
                        123.709.432
                        <span>人</span>
                    </div>
                </div>
                <div class="item">
                    <div class="top_title clearfix">
                        <img class="fl" src="../image/home_ic_01.png" />
                        <span class="fl">总用户人数</span>
                    </div>
                    <div class="bottom_number">
                        123.709.432
                        <span>人</span>
                    </div>
                </div>
                <div class="item">
                    <div class="top_title clearfix">
                        <img class="fl" src="../image/home_ic_01.png" />
                        <span class="fl">总用户人数</span>
                    </div>
                    <div class="bottom_number">
                        123.709.432
                        <span>人</span>
                    </div>
                </div>
            </div>
            <div class="main_center fl" id="3d_map">

            </div>
            <div class="main_right fl">
                <ul class="ranking_box">
                    <li class="one_li">
                        <span>广东省</span>
                    </li>
                    <li class="two_li">
                        <span>浙江省</span>
                    </li>
                    <li class="three_li">
                        <span>四川省</span>
                    </li>
                </ul>
            </div>
        </div>
        <div class="bottom_content_box clearfix">



            <div class="bottom_left fl">
                <div class="content_title_box clearfix">
                    <img class="fl" src="../image/home_ic_01.png" />
                    <span class="fl">最近热播</span>
                </div>
                <div class="bottom_left_content" id="tagbox">
                    <a href="#" class="tag">前端学习</a>
                    <a href="#" class="tag">设计模式</a>
                    <a href="#" class="tag">算法与数据结构</a>
                    <a href="#" class="tag">计算机网络</a>
                    <a href="#" class="tag">程序员面试宝典</a>
                    <a href="#" class="tag">剑指Offer</a>
                    <a href="#" class="tag">你不知道的javascript</a>
                </div>
            </div>



            <div class="bottom_center fl">
                <div class="content_title_box clearfix">
                    <img class="fl" src="../image/home_ic_01.png" />
                    <span class="fl">24小时实时在线走势</span>
                </div>
                <div id="bar_chart" style="width: 604px;height:212px;">

                </div>
            </div>
            <div class="bottom_right fl">
                <div class="content_title_box clearfix">
                    <img class="fl" src="../image/home_ic_01.png" />
                    <span class="fl">在线动态</span>
                </div>

                <div class="bottom_info_box">


                    <div class="header_box clearfix">
                        <div class="fl l">设备ID</div>
                        <div class="fl c">IP</div>
                        <div class="fl r">启动时间</div>
                    </div>
                    <ul class="list_box">
                        <li class="clearfix">
                            <div class="fl l">GCHOe******</div>
                            <div class="fl c">192.168.98.94</div>
                            <div class="fl r">14:01:04</div>
                        </li>
                        <li class="clearfix">
                            <div class="fl l">GCHOe******</div>
                            <div class="fl c">192.168.98.94</div>
                            <div class="fl r">14:01:04</div>
                        </li>
                        <li class="clearfix">
                            <div class="fl l">GCHOe******</div>
                            <div class="fl c">192.168.98.94</div>
                            <div class="fl r">14:01:04</div>
                        </li>
                        <li class="clearfix">
                            <div class="fl l">GCHOe******</div>
                            <div class="fl c">192.168.98.94</div>
                            <div class="fl r">14:01:04</div>
                        </li>
                        <li class="clearfix">
                            <div class="fl l">GCHOe******</div>
                            <div class="fl c">192.168.98.94</div>
                            <div class="fl r">14:01:04</div>
                        </li>
                    </ul>

                </div>

            </div>
        </div>
    </div>
</body>
<script>
    var myChart = echarts.init(document.getElementById('bar_chart'));

    var xData = function () {
        var data = [];
        for (var i = 1; i < 25; i++) {
            data.push(i);
        }
        return data;
    }();

    var data = [];

    for (var i = 0; i < 24; i++) {
        data.push(Math.random() * 500);
    }

    //var data = [13.7, 13.4, 13.5, 16.1, 17.4, 15.2]

    var option = {
        //backgroundColor: "#141f56",
        title: {
            text: "24小时实时在线走势",
            show: false,
            textStyle: {
                color: '#fff',
                fontSize: '20'
            },
            subtextStyle: {
                color: '#90979c',
                fontSize: '16',

            },
        },
        tooltip: {
            show: "true",
            trigger: 'item',
            backgroundColor: 'rgba(0,0,0,0.7)', // 背景
            padding: [8, 10], //内边距
            extraCssText: 'box-shadow: 0 0 3px rgba(255, 255, 255, 0.4);', //添加阴影
            formatter: function (params) {
                if (params.seriesName != "") {
                    return params.name + ' ： 第 ' + params.value + ' 名';
                }
            },

        },
        grid: {
            borderWidth: 0,
            top: 15,
            bottom: 20,
            left: 0,
            right: 0,
            textStyle: {
                color: "#fff"
            },
            backgroundColor: 'transparent'
        },
        xAxis: [{
            type: 'category',
            axisTick: {
                show: false
            },
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#363e83',
                }
            },
            axisLabel: {
                inside: false,
                textStyle: {
                    color: '#bac0c0',
                    fontWeight: 'normal',
                    fontSize: '12',
                },
                // formatter:function(val){
                //     return val.split("").join("\n")
                // },
            },
            data: xData,
        }, {
            type: 'category',
            axisLine: {
                show: false
            },
            axisTick: {
                show: false
            },
            axisLabel: {
                show: false
            },
            splitArea: {
                show: false
            },
            splitLine: {
                show: false
            },
            data: xData,
        }],
        yAxis: {
            type: 'value',
            axisTick: {
                show: false
            },
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#32346c',
                }
            },
            splitLine: {
                show: true,
                lineStyle: {
                    color: '#32346c ',
                }
            },
            axisLabel: {
                textStyle: {
                    color: '#bac0c0',
                    fontWeight: 'normal',
                    fontSize: '12',
                },
                formatter: '{value}w',
            },
        },
        series: [{
            name: '生师比(%)',
            type: 'bar',
            itemStyle: {
                normal: {
                    show: true,
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: '#00c0e9'
                    }, {
                        offset: 1,
                        color: '#3b73cf'
                    }]),
                    barBorderRadius: 50,
                    borderWidth: 0,
                },
                emphasis: {
                    shadowBlur: 15,
                    shadowColor: 'rgba(105,123, 214, 0.7)'
                }
            },
            zlevel: 2,
            barWidth: '10%',
            data: data,
        },

        {
            name: '',
            type: 'bar',
            xAxisIndex: 1,
            zlevel: 1,
            itemStyle: {
                normal: {
                    color: '#121847',
                    borderWidth: 0,
                    shadowBlur: {
                        shadowColor: 'rgba(255,255,255,0.31)',
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowOffsetY: 2,
                    },
                }
            },
            barWidth: '10%',
            data: [30, 30, 30, 30, 30, 30]
        }
        ]
    }

    myChart.setOption(option);

</script>

<script type="text/javascript" src='../js/3dMap.js'></script>

</html>